home *** CD-ROM | disk | FTP | other *** search
- on MouseClick
- global gBoutons, gNumSpr, gSurvolPrec
- set gSurvolPrec to -1
- beep()
- gBoutons(relache, gNumSpr)
- end
-
- on mouseDown
- global gNumSpr, g1erSprLoc, gBoutons
- set gNumSpr to -1
- repeat with i = g1erSprLoc + 4 to g1erSprLoc + 5
- if rollOver(i) then
- set gNumSpr to i
- exit repeat
- end if
- end repeat
- if gNumSpr <> -1 then
- if word 2 of the name of cast the castNum of sprite gNumSpr = "1" then
- gBoutons(appuie, gNumSpr)
- else
- set gNumSpr to -1
- end if
- end if
- end
-
- on mouseUp
- global gNumSpr, g1erSprLoc
- curseur(1)
- set monNumSpr to -1
- repeat with i = g1erSprLoc + 4 to g1erSprLoc + 5
- if rollOver(i) then
- set monNumSpr to i
- exit repeat
- end if
- end repeat
- if (monNumSpr <> -1) and (gNumSpr = monNumSpr) then
- MouseClick()
- else
- pass()
- end if
- end
-